﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApp4
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            List<Color> test = new List<Color>();
            test.Add(new Color { Code = "#BBFFFF", Name = "PaleTurquoise1" });
            test.Add(new Color { Code = "#AEEEEE", Name = "PaleTurquoise2" });
            test.Add(new Color { Code = "#96CDCD", Name = "PaleTurquoise3" });
            test.Add(new Color { Code = "#668B8B", Name = "PaleTurquoise4" });
            test.Add(new Color { Code = "#98F5FF", Name = "CadetBlue1" });
            test.Add(new Color { Code = "#8EE5EE", Name = "CadetBlue2" });
            test.Add(new Color { Code = "#7AC5CD", Name = "CadetBlue3" });
            test.Add(new Color { Code = "#53868B", Name = "CadetBlue4" });
            test.Add(new Color { Code = "#00F5FF", Name = "Turquoise1" });
            test.Add(new Color { Code = "#00E5EE", Name = "Turquoise2" });
            grid.ItemsSource = test;
        }

        public class Color
        {
            public string Code { get; set; }
            public string Name { get; set; }
        }
    }
}
